import request from '@/utils/request'

// 获取待办列表
export function listTodo(query) {
  return request({
    url: '/personal/getSelfWorkflowTask',
    method: 'get',
    params: query
  })
}

// 获取消息列表
export function listMessage(query) {
  return request({
    url: '/system/message/listToMe',
    method: 'get',
    params: query
  })
}

// 获取消息列表（给我，未读）
export function listMessageToMeUnRead(query) {
  return request({
    url: '/system/message/listToMeUnRead',
    method: 'get',
    params: query
  })
}

// 消息标记已读
export function messageMarkRead(messageId) {
  return request({
    url: '/system/message/markRead/' + messageId,
    method: 'POST'
  })
}
